<template>
  <ComponentPage
    title="切换开关组件库"
    :componentGlob="toggleSwitchComponents"
    :pageSize="8"
  />
</template>

<script setup>
import ComponentPage from './ComponentPage.vue'

// ✅ 动态导入目标目录下所有 .vue 文件
const toggleSwitchComponents = import.meta.glob('../components/toggleSwitch/*.vue')

</script>